/*
 * readyQueue.h
 *
 *  Created on: Oct 21, 2009
 *      Author: nreimens
 */

#ifndef READYQUEUE_H_
#define READYQUEUE_H_

typedef struct _RQNODE {
	int index;
	struct _RQNODE *next;
} RQNODE;

typedef struct _READYQUEUE {
	RQNODE *head;
	RQNODE *tail;
} READYQUEUE;

void enqueue(READYQUEUE *q, int in);

int dequeue(READYQUEUE *q);

void queueInit(READYQUEUE **q);

#endif /* READYQUEUE_H_ */
